package com.example.blog.service;

import com.example.blog.entity.User;
import java.util.Optional;

public interface UserService {

    User registerUser(String username, String email, String password);

    User findByUsername(String username);

    User findByEmail(String email);

    boolean existsByUsername(String username);

    boolean existsByEmail(String email);

    User updateUser(User user);

    User findById(Long id);

}